<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>点击对话框</title>
</head>
<script type="text/javascript">
	var n1=confirm();
	

	if(n1==true){
		alert("您已退出");
	}
	else{
		alert("您已取消退出");
	}
</script>
<body>
	
</body>
</html>